<template>
    page3

    <button @click="goHome">回到首页</button>
</template>
<script>
import { defineComponent,toRaw } from 'vue'
import {useRoute,useRouter} from "vue-router"
export default defineComponent({
    setup() {
        const route= useRoute()
        console.log(toRaw(route));

        const router = useRouter();

        const goHome = ()=>{
            router.push("/")
        }
        return{
            goHome
        }
    },
})
</script>
